From: Kim F. Storm Date: Sat, 7 Feb 2004 01:01:16 +0000 (+0000) Subject: (Text Lines): Add line-number-at-pos. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~24235 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=e3850b8d6d033faae754a24796bdcb62a7d970fd;p=emacs.git (Text Lines): Add line-number-at-pos. --- diff --git a/lispref/positions.texi b/lispref/positions.texi index 72b84a6a0ce..a0e151a1616 100644 --- a/lispref/positions.texi +++ b/lispref/positions.texi @@ -409,6 +409,12 @@ Here is an example of using @code{count-lines}: @end example @end defun +@defun line-number-at-pos &optional pos +@cindex line number +This function returns the line number in the current buffer +corresponding the buffer position @var{pos}. If @var{pos} is nil or +omitted, the current buffer position is used. + @ignore @c ================ The @code{previous-line} and @code{next-line} commands are functions